
import java.io.Serializable;
import manager.mThread;
import java.util.List;
import java.util.ArrayList;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Phạm Huy Đức Hàm khung chứa thông tin của từng host cụ thể
 */
public final class mThreadHost implements Serializable {
   
   private String strIp, strPort, strUser, strPass, strEncryption;
   private List<mThread> listThread;
   
   public mThreadHost() {
      clear();
   }
   
   @Override
   public mThreadHost clone() {
      mThreadHost rt = new mThreadHost();
      rt.setStrEncryption(strEncryption);
      rt.setStrIp(strIp);
      rt.setStrPass(strPass);
      rt.setStrPort(strPort);
      rt.setStrUser(strUser);
      rt.setListThread(listThread);
      return rt;
   }
   
   public void clear() {
      setStrEncryption("");
      setStrIp("");
      setStrPass("");
      setStrPort("");
      setStrUser("");
      setListThread(new ArrayList());
   }

   /**
    * @return the strIp
    */
   public String getStrIp() {
      return strIp;
   }

   /**
    * @param strIp the strIp to set
    */
   public void setStrIp(String strIp) {
      this.strIp = strIp;
   }

   /**
    * @return the strPort
    */
   public String getStrPort() {
      return strPort;
   }

   /**
    * @param strPort the strPort to set
    */
   public void setStrPort(String strPort) {
      this.strPort = strPort;
   }

   /**
    * @return the strUser
    */
   public String getStrUser() {
      return strUser;
   }

   /**
    * @param strUser the strUser to set
    */
   public void setStrUser(String strUser) {
      this.strUser = strUser;
   }

   /**
    * @return the strPass
    */
   public String getStrPass() {
      return strPass;
   }

   /**
    * @param strPass the strPass to set
    */
   public void setStrPass(String strPass) {
      this.strPass = strPass;
   }

   /**
    * @return the strEncryption
    */
   public String getStrEncryption() {
      return strEncryption;
   }

   /**
    * @param strEncryption the strEncryption to set
    */
   public void setStrEncryption(String strEncryption) {
      this.strEncryption = strEncryption;
   }

   /**
    * @return the listThread
    */
   public List<mThread> getListThread() {
      return listThread;
   }

   /**
    * @param listThread the listThread to set
    */
   public void setListThread(List<mThread> listThread) {
      this.listThread = listThread;
   }
}
